package pers.qianyu.module.core.comm;


import pers.qianyu.module.core.util.DateTimeUtil;

/**
 * @author mizzle rain
 * @date 2020-11-13 12:32
 */
public abstract class BaseConverter {
    protected void entityToVO(BaseEntity baseEntity, BaseVO baseVO) {
        baseVO.setId(baseEntity.getId());
        baseVO.setCreateTime(DateTimeUtil.formatDatetime(baseEntity.getCreateTime()));
        baseVO.setUpdateTime(DateTimeUtil.formatDatetime(baseEntity.getUpdateTime()));
        baseVO.setCreatedBy(baseEntity.getCreatedBy());
        baseVO.setUpdatedBy(baseEntity.getUpdatedBy());
    }
}
